home *** CD-ROM | disk | FTP | other *** search
- on mixEmUp
- repeat with f = 5 to 16
- set the visible of sprite f to 1
- end repeat
- repeat with f = 5 to 16
- set the castNum of sprite f to the number of cast "back"
- end repeat
- repeat with f = 1 to 6
- set sprite1 to 0
- set sprite2 to 0
- repeat with W = 1 to 2
- set used to 1
- repeat while used
- set randomSprite to random(12)
- set randomSprite to randomSprite + 4
- if the castNum of sprite randomSprite = the number of cast "back" then
- set used to 0
- if sprite1 <> 0 then
- if randomSprite <> sprite1 then
- set sprite2 to randomSprite
- else
- set used to 1
- end if
- next repeat
- end if
- set sprite1 to randomSprite
- end if
- end repeat
- end repeat
- set good to 0
- repeat while not good
- set tempRand to random(8)
- set tempRand to tempRand + 2
- set rand2 to random(10)
- if rand2 > 5 then
- set tempRand to tempRand + 20
- end if
- set duplicate to 0
- repeat with T = 5 to 16
- if the castNum of sprite T = tempRand then
- set duplicate to 1
- end if
- end repeat
- if not duplicate then
- set the castNum of sprite sprite1 to tempRand
- set the castNum of sprite sprite2 to tempRand + 10
- set good to 1
- end if
- end repeat
- end repeat
- updateStage()
- end
-